.d-chart-wrap {
  padding: 30px 60px 30px 30px;
}
.d-chart {
  border-bottom: 2px solid #dcdcdc;
  border-left: 2px solid #dcdcdc;
  position: relative;
  color: #666;
  font-size: 14px;
}
/*横向*/
.d-chart-h .d-chart-item {
  height: 70px;
  position: relative;
  z-index: 88;
}
.d-chart-h .d-chart-item span {
  top: 28.888%;
  height: 42.222%;
  line-height: 170%;
  display: block;
  left: 0;
  position: absolute;
  background-color: #fff;
  color: #666;
  font-size: 12px;
}
.d-chart-h .d-chart-item .d-chart-diff {
  background-color: #fff;
  border: 1px solid #ed5565;
  border-radius: 4px;
  color: #ed5565;
  font-size: 12px;
  height: 42.222%;
  line-height: 150%;
  position: absolute;
  left: -6px;
  display: none;
  text-align: center;
  width: 60px;
  top: 28.88%;
  z-index: 99;
  opacity: 0;
  filter: alpha(opacity=0);
  -moz-transition: all 0.5s ease 0s,;
  -webkit-transition: all 0.5s ease 0s,;
  -o-transition: all 0.5s ease 0s,;
  -ms-transition: all 0.5s ease 0s,;
  transition: all 0.5s ease 0s,;
  -moz-transition: all 0.5s ease 0s;
  -webkit-transition: all 0.5s ease 0s;
  -o-transition: all 0.5s ease 0s;
  -ms-transition: all 0.5s ease 0s;
  transition: all 0.5s ease 0s;
}
.d-chart-h .d-chart-item .d-chart-diff.d-diff-success {
  color: #6ebc45;
  border-color: #6ebc45;
}
.d-chart-h .d-chart-item .d-chart-box {
  background-color: #6ebc45;
  left: 0;
  top: 28.88%;
  height: 42.222%;
  position: absolute;
}
.d-chart-h .d-chart-item:hover .d-chart-diff {
  display: block;
  -moz-animation: fadeInDown 0.8s 0.01s ease both;
  -webkit-animation: fadeInDown 0.8s 0.01s ease both;
  -o-animation: fadeInDown 0.8s 0.01s ease both;
  -ms-animation: fadeInDown 0.8s 0.01s ease both;
  animation: fadeInDown 0.8s 0.01s ease both;
}
.d-chart-h .d-chart-item:hover .d-chart-box {
  opacity: 0.8;
  filter: alpha(opacity=80);
}
.d-chart-h .d-chart-item.d-chart-danger .d-chart-box {
  background-color: #ed5565;
}
.d-chart-h .d-chart-item .d-chart-label {
  color: #999;
  font-size: 13px;
  left: -60px;
  position: absolute;
  text-align: right;
  top: 28.888%;
  height: 42.222%;
  width: 50px;
  line-height: 170%;
}
.d-chart-h .d-chart-step {
  border-left: 1px dashed #dcdcdc;
  bottom: 0;
  top: 0;
  left: 0;
  position: absolute;
}
.d-chart-h .d-chart-step span {
  bottom: -25px;
  display: block;
  left: -15px;
  position: absolute;
  text-align: center;
  width: 30px;
  color: #999;
}
.d-chart-h .d-chart-step.d-average {
  border-left-color: #ed5565;
}
.d-chart-h .d-chart-step.d-average span {
  color: #ed5565;
  top: -35px;
  text-align: center;
  left: -18px;
  width: 3em;
}
/*竖向*/
.d-chart-v .d-chart-item {
  float: left;
  height: 100%;
  text-align: center;
  position: relative;
  width: 70px;
}
.d-chart-v .d-chart-item span {
  bottom: 0;
  left: 0;
  text-align: center;
  width: 100%;
  color: #666;
  background-color: #fff;
  z-index: 1;
  position: absolute;
  font-size: 12px;
}
.d-chart-v .d-chart-item .d-chart-diff {
  background-color: #fff;
  border: 1px solid #ed5565;
  border-radius: 4px;
  color: #ed5565;
  font-size: 12px;
  height: 24px;
  line-height: 24px;
  position: absolute;
  left: -6px;
  display: none;
  text-align: center;
  width: 60px;
  z-index: 99;
  opacity: 0;
  filter: alpha(opacity=0);
  -moz-transition: all 0.5s ease 0s,;
  -webkit-transition: all 0.5s ease 0s,;
  -o-transition: all 0.5s ease 0s,;
  -ms-transition: all 0.5s ease 0s,;
  transition: all 0.5s ease 0s,;
  -moz-transition: all 0.5s ease 0s;
  -webkit-transition: all 0.5s ease 0s;
  -o-transition: all 0.5s ease 0s;
  -ms-transition: all 0.5s ease 0s;
  transition: all 0.5s ease 0s;
}
.d-chart-v .d-chart-item .d-chart-diff.d-diff-success {
  color: #6ebc45;
  border-color: #6ebc45;
}
.d-chart-v .d-chart-item .d-chart-box {
  background-color: #6ebc45;
  bottom: 0;
  left: 50%;
  margin-left: -21.111%;
  position: absolute;
  width: 42.222%;
  height: 0;
  z-index: 88;
}
.d-chart-v .d-chart-item:hover .d-chart-diff {
  display: block;
  -moz-animation: fadeInDown 0.8s 0.01s ease both;
  -webkit-animation: fadeInDown 0.8s 0.01s ease both;
  -o-animation: fadeInDown 0.8s 0.01s ease both;
  -ms-animation: fadeInDown 0.8s 0.01s ease both;
  animation: fadeInDown 0.8s 0.01s ease both;
}
.d-chart-v .d-chart-item:hover .d-chart-box {
  opacity: 0.8;
  filter: alpha(opacity=80);
}
.d-chart-v .d-chart-item.d-chart-danger .d-chart-box {
  background-color: #ed5565;
}
.d-chart-v .d-chart-item .d-chart-label {
  bottom: -25px;
  position: absolute;
  width: 100%;
  font-size: 13px;
  color: #999;
}
.d-chart-v .d-chart-step {
  border-top: 1px dashed #dcdcdc;
  bottom: 0;
  left: 0;
  position: absolute;
  width: 100%;
}
.d-chart-v .d-chart-step span {
  left: -45px;
  position: absolute;
  top: -9px;
  display: block;
  text-align: right;
  width: 40px;
  color: #999;
}
.d-chart-v .d-chart-step.d-average {
  border-top-color: #ed5565;
}
.d-chart-v .d-chart-step.d-average span {
  color: #ed5565;
  left: auto;
  right: -56px;
  text-align: center;
  top: -18px;
  width: 3em;
}
@-webkit-keyframes fadeInDown {
  0% {
    opacity: 0;
    -webkit-transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
  }
}
@-moz-keyframes fadeInDown {
  0% {
    opacity: 0;
    -moz-transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    -moz-transform: translateY(0);
  }
}
